<br/> <br/> <br/> <br/>
<script type="text/javascript">
	function submitValidation() {
		if (document.forms["mainForm"].com_id.value=="") {
			alert("You have to select a company");
			return false;
		}
		return true;
	}
</script>
<div align="center">
<form name="mainForm" method="post" action="<?=site_url("main/submitselectioncompany")?>" onsubmit="return submitValidation();">
	<select name="com_id" size="7">
		<option value="" selected>Please select a company</option>
	<?php foreach($comapny_list->result_array() as $com) :?>
		<option value="<?=$com["com_id"]?>"><?=$com["com_number"]?> - <?=htmlspecialchars($com["com_name"])?></option>
	<?php endforeach;?>
		
	</select>
	<br/><br/>
	<input type="submit" value=" Go " />
</form>
<br/>
<a href="<?=site_url("company/creation?comsel=1")?>">Create new company</a>
</div>